package com.bridgeintelligent.tag.webserver.dim.mgmt.service.theme;

import com.bridgeintelligent.tag.mapper.DimThemeMapper;
import com.bridgeintelligent.tag.webserver.dim.mgmt.api.BaseCode;
import com.bridgeintelligent.tag.webserver.dim.mgmt.api.DimRep;
import org.springframework.stereotype.Service;

/**
 * Created by JackCheung on 2019/9/13 3:49 PM.
 */
@Service
public class DimThemeService implements IDimThemeService {

    private DimThemeMapper dimThemeMapper;

    public DimThemeService(DimThemeMapper dimThemeMapper) {
        this.dimThemeMapper = dimThemeMapper;
    }

    @Override
    public DimRep list() {
        return new DimRep<>(dimThemeMapper.list(), BaseCode.SUCCESS);
    }
}
